package com.itheima.d4_byte_stream;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;

public class FileOutputStreamTest4 {
    public static void main(String[] args) throws Exception {
        OutputStream os =new FileOutputStream("Day17\\src\\itheima03.txt",true);

        os.write(76);
        os.write('b');

        byte[] bytes="我爱你中国bc".getBytes();
        os.write(bytes);

        os.write(bytes,0,15);

        os.write("\r\n".getBytes());

        os.close();





    }
}
